//
//  test_associatedtype.swift
//  TestSwift
//
//  Created by axinger on 2021/10/18.
//

import Foundation

protocol Food {
    func eat()
    
}

struct Meat : Food {
    func eat() {
        print("Meat==========")
    }
}

func test_associatedtype() {
    
    func test(c: Food) {
        c.eat()
    }
    
    let meat  = Meat()
    test(c: meat)
    
}

